/*
 *    Copyright (c) 2018-2025, nart All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: nart
 */

package com.nai365.nart.blockchain.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author pigx code generator
 * @date 2022-06-23 15:31:52
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("transaction")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "")
public class Transaction extends Model<Transaction> {

	private static final long serialVersionUID = 1L;

	/**
	 * id
	 */
	@TableId(type = IdType.ASSIGN_ID)
	@ApiModelProperty(value = "id")
	private Long id;

	/**
	 * blockNumber
	 */
	@ApiModelProperty(value = "blockNumber")
	private Long blockNumber;

	/**
	 * blockHash
	 */
	@ApiModelProperty(value = "blockHash")
	private String blockHash;

	/**
	 * txHash
	 */
	@ApiModelProperty(value = "txHash")
	private String txHash;

	/**
	 * toAddress
	 */
	@ApiModelProperty(value = "toAddress")
	private String toAddress;

	/**
	 * fromAddress
	 */
	@ApiModelProperty(value = "fromAddress")
	private String fromAddress;

	/**
	 * nonce
	 */
	@ApiModelProperty(value = "nonce")
	private Long nonce;

	/**
	 * txTime
	 */
	@ApiModelProperty(value = "txTime")
	private LocalDateTime txTime;

	/**
	 * gasUsed
	 */
	@ApiModelProperty(value = "gasUsed")
	private Long gasUsed;

	/**
	 * gasPrice
	 */
	@ApiModelProperty(value = "gasPrice")
	private Long gasPrice;

	/**
	 * txFee
	 */
	@ApiModelProperty(value = "txFee")
	private Long txFee;

	/**
	 * type
	 */
	@ApiModelProperty(value = "type")
	private Integer type;

	/**
	 * value
	 */
	@ApiModelProperty(value = "value")
	private String value;

	/**
	 * value
	 */
	@ApiModelProperty(value = "input")
	private String input;

	/**
	 * gas
	 */
	@ApiModelProperty(value = "gas")
	private Long gas;


}
